//
// CPSRibbonLookAt.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;

public class CPSRibbonLookAt extends CPSRibbonBase {
  private long swigCPtr;

  public CPSRibbonLookAt(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CPSRibbonLookAt_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPSRibbonLookAt obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPSRibbonLookAt(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CPSRibbonLookAt() {
    this(nel3dJNI.new_CPSRibbonLookAt(), true);
  }

  public void serial(IStream f) {
    nel3dJNI.CPSRibbonLookAt_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public void setTexture(SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t tex) {
    nel3dJNI.CPSRibbonLookAt_setTexture(swigCPtr, this, SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t.getCPtr(tex));
  }

  public ITexture getTexture() {
    long cPtr = nel3dJNI.CPSRibbonLookAt_getTexture__SWIG_0(swigCPtr, this);
    return (cPtr == 0) ? null : new ITexture(cPtr, false);
  }

  public void setColorFading(boolean onOff) {
    nel3dJNI.CPSRibbonLookAt_setColorFading__SWIG_0(swigCPtr, this, onOff);
  }

  public void setColorFading() {
    nel3dJNI.CPSRibbonLookAt_setColorFading__SWIG_1(swigCPtr, this);
  }

  public boolean getColorFading() {
    return nel3dJNI.CPSRibbonLookAt_getColorFading(swigCPtr, this);
  }

  public void setSystemBasis(boolean yes) {
    nel3dJNI.CPSRibbonLookAt_setSystemBasis(swigCPtr, this, yes);
  }

  public boolean isInSystemBasis() {
    return nel3dJNI.CPSRibbonLookAt_isInSystemBasis(swigCPtr, this);
  }

  public void step(TPSProcessPass pass) {
    nel3dJNI.CPSRibbonLookAt_step(swigCPtr, this, pass.swigValue());
  }

  public boolean hasTransparentFaces() {
    return nel3dJNI.CPSRibbonLookAt_hasTransparentFaces(swigCPtr, this);
  }

  public boolean hasOpaqueFaces() {
    return nel3dJNI.CPSRibbonLookAt_hasOpaqueFaces(swigCPtr, this);
  }

  public long getNumWantedTris() {
    return nel3dJNI.CPSRibbonLookAt_getNumWantedTris(swigCPtr, this);
  }

  public boolean hasLightableFaces() {
    return nel3dJNI.CPSRibbonLookAt_hasLightableFaces(swigCPtr, this);
  }

  public boolean supportGlobalColorLighting() {
    return nel3dJNI.CPSRibbonLookAt_supportGlobalColorLighting(swigCPtr, this);
  }

  public void enumTexs(SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t dest, IDriver drv) {
    nel3dJNI.CPSRibbonLookAt_enumTexs(swigCPtr, this, SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t.getCPtr(dest), IDriver.getCPtr(drv), drv);
  }

  public void setZBias(float value) {
    nel3dJNI.CPSRibbonLookAt_setZBias(swigCPtr, this, value);
  }

  public float getZBias() {
    return nel3dJNI.CPSRibbonLookAt_getZBias(swigCPtr, this);
  }

}
